<template>
  <div>
    <MineNo v-if="flag"></MineNo>
    <MineYes v-else></MineYes>
  </div>
</template>

<script>
import MineYes from '@/components/mineYes'
import MineNo from '@/components/mineNo'

import { getToken } from '@/utils/storage'
// import { getUserInfo } from '@/api/user.js'
export default {
  name: 'mine-page',
  components: {
    MineYes,
    MineNo
  },
  props: {},
  data () {
    return {
      flag: true,
      obj: {}
    }
  },
  computed: {},
  watch: {},
  async created () {
    // 判断是否有token 有的话显示登录过的页面
    const token = getToken()
    if (token) {
      this.flag = false
    }

    // // 发起请求 获取用户信息
    // const res = await getUserInfo()
    // console.log(res)
  },
  methods: {}
}
</script>
